package com.sip.stream.utils.zfy.voice;

public class GSResult<T> {
    public int code;
    public T data;
    public String message;

    public GSResult() {
        this.code = 0;
        this.message = "";
        this.data = null;
    }

    public GSResult(T data) {
        this.code = 0;
        this.message = "";
        this.data = null;
        this.data = data;
    }

    public GSResult(int code) {
        this.code = 0;
        this.message = "";
        this.data = null;
        this.code = code;
        this.message = "";
    }

    public GSResult(int code, String message) {
        this.code = 0;
        this.message = "";
        this.data = null;
        this.code = code;
        this.message = message;
    }

    public boolean isSuccess() {
        return this.code == 0;
    }
}
